import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

import java.io.IOException;

public class YourMapper extends Mapper<Object, Text, Text, Text> {
    public final Text outKey = new Text();
    public final Text outValue = new Text();

    @Override
    protected void map(Object key, Text value, Mapper<Object, Text, Text, Text>.Context context) throws IOException, InterruptedException {
        String[] info = value.toString().split(";");
        outKey.set(info[0].trim());
        outValue.set(info[1].trim());
        context.write(outKey, outValue);
    }
}
